package com.tencent.iov.cowin.befsale.clue.dao.http.iam;

import com.tencent.iov.cowin.befsale.clue.dao.http.iam.request.CenterPhoneRequest;
import com.tencent.iov.cowin.befsale.clue.dao.http.iam.response.CenterPhoneResponse;
import com.tencent.iov.cowin.befsale.clue.value.contants.ServiceConstant;
import com.software.boot.common.entity.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author: zly
 * @description:
 * @createDate: 2022-01-22
 **/

@FeignClient( name=ServiceConstant.IAM_INC_CENTER_SERVICE,url = ServiceConstant.IAM_INC_CENTER_API_HOST)
public interface IamIncCenterClient {

    /**
     * add by zly
     * 2022-01-22
     * iam的inc-center服务获取oneId
     * @param request
     * @return
     */
    @PostMapping("/v1/account/user/reg_potential")
    @ApiOperation(value = "根据手机号注册获取oneId", httpMethod = "POST", response = Response.class, notes = "getOneIdByPhones")
    CenterPhoneResponse getOneIdByPhones(@RequestBody CenterPhoneRequest request, @RequestHeader(value ="CompanyID" ) String companyID);

    /**
     * add by zly
     * 2022-01-23
     * 线索定时同步--定时同步crm修改
     * @param request
     * @return
     */
//    @PostMapping("crm-lead-api/api/v1/leadInfo/update")
//    @ApiOperation(value = "CRM线索信息新建", httpMethod = "POST", response = Response.class, notes = "get_user_behavior_data")
//    SyncCrmCreateResponse clueInitialDataToCrmUpdate(@RequestBody SyncCrmUpdateClueRequest request, @RequestHeader(value ="Authorization" ) String authorization);

}
